<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>
        <h:form id="menuForm">
            <p:menubar>
                <p:menuitem value="#{myBundle.Home}" outcome="/index" icon="ui-icon-home"/>
                <p:submenu label="#{myBundle.Maintenance}">
                    <p:menuitem value="Camera" outcome="/camera/index" />
                    <p:menuitem value="Citta" outcome="/citta/index" />
                    <p:menuitem value="Compagnia" outcome="/compagnia/index" />
                    <p:menuitem value="Composizione" outcome="/composizione/index" />
                    <p:menuitem value="Composizionepacchetto" outcome="/composizionepacchetto/index" />
                    <p:menuitem value="Elemento" outcome="/elemento/index" />
                    <p:menuitem value="Escursione" outcome="/escursione/index" />
                    <p:menuitem value="Hotel" outcome="/hotel/index" />
                    <p:menuitem value="Pacchetto" outcome="/pacchetto/index" />
                    <p:menuitem value="Pacchettoviaggio" outcome="/pacchettoviaggio/index" />
                    <p:menuitem value="Prenotazioni" outcome="/prenotazioni/index" />
                    <p:menuitem value="Utente" outcome="/utente/index" />
                    <p:menuitem value="Viaggio" outcome="/viaggio/index" />
                    <p:menuitem value="Volo" outcome="/volo/index" />
                </p:submenu>            
                <p:menuitem  value="Logout"  action="#{registration.logout}" ajax="false" update="userID"/>
                <p:menuitem  id="userID" value="Hi user #{context.ID}"  ajax="true"/>
                
                              
            </p:menubar>
            
        </h:form>
    </ui:composition>

</html>